package com.tianxia120.website.data.config;

import com.jfinal.render.Render;
import com.jfinal.render.RenderFactory;

/**
 * @createTime: 2018/10/26 17:18
 * @author: HingLo
 * @description: 自定义Render处理,修改了默认框架异常或者的错误处理
 */
public class MyRenderFactory extends RenderFactory {
    @Override
    public Render getErrorRender(int errorCode, String view) {
        return new ErrorRenderFactory(errorCode, view);
    }

    @Override
    public Render getErrorRender(int errorCode) {
        return new ErrorRenderFactory(errorCode, constants.getErrorView(errorCode));
    }
}
